// 全局样式变量
$primary-color: #0A2463; // 主色调-深蓝
$secondary-color: #D8315B; // 辅助色-红色
$accent-color: #FFD166; // 强调色-黄色
$text-color: #333333; // 文本颜色
$light-text: #666666; // 次要文本
$border-color: #E0E0E0; // 边框颜色
$bg-light: #F5F7FA; // 浅色背景
$white: #FFFFFF; // 白色

// 响应式断点
$breakpoints: (
  'sm': 576px,
  'md': 768px,
  'lg': 992px,
  'xl': 1200px,
  'xxl': 1400px
);

// 全局混入
@mixin responsive($breakpoint) {
  @media (min-width: map-get($breakpoints, $breakpoint)) {
    @content;
  }
}

// 基础样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: $text-color;
  background-color: $white;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  
  &:hover {
    color: $secondary-color;
  }
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

// 动画关键帧
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes numberCounter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

// 全局动画类
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

.number-counter {
  animation: numberCounter 0.6s ease forwards;
}